<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');
?>
<p>
	<a href="index.php">&lt;&lt; Back to Buildings Portal</a><br />
</p>
<h1>Delete Building</h1>

<?php

//get num_rows currently in buildings table
$building_id = mysql_real_escape_string(strip_tags($_GET['id']));

$i = 0;

//select statement
$query="SELECT * FROM buildings WHERE id='$building_id'";
$result = mysql_query($query);



$building_name=mysql_result($result,$i,"building_name");
$abbreviation=mysql_result($result,$i,"abbreviation");

echo "<p>";
echo "Are you sure you want to delete <b>$building_name?</p>";

echo "<form method='post' action='delete_do.php'>";
echo "<input type='hidden' name='id' value='$building_id'>";
echo "<p><input type='submit' value='Yes'></p>";
echo '</form>';



?>



<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>